package com.liuguang.api.article.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: ArticleDTO
 * @Description：
 * @Author: wanghr
 * Date: 10:10 AM 2020/10/19
 * Version: 1.0
 */
@Data
@ToString
public class ArticleDTO implements Serializable {

    private static final long serialVersionUID = -5156328700421387121L;
    @NotNull
    private Integer categoryIds;

    @NotNull
    private String articleName;

    /**
     * 在微服务中，获取用户信息就靠这个字段
     */
    @NotNull
    private String authorName;

    @NotNull
    private Byte articleType;


    private String articleContent;
}
